home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / djgpp / contrib / dvx / inc / x11 / xaw / asciitex.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-15  |  3.6 KB  |  111 lines

  1. /*
  2.  * $XConsortium: AsciiText.h,v 1.15 89/07/06 16:00:35 kit Exp $ 
  3.  */
  4.  
  5. /***********************************************************
  6. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
  7. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  8.  
  9.                         All Rights Reserved
  10.  
  11. Permission to use, copy, modify, and distribute this software and its 
  12. documentation for any purpose and without fee is hereby granted, 
  13. provided that the above copyright notice appear in all copies and that
  14. both that copyright notice and this permission notice appear in 
  15. supporting documentation, and that the names of Digital or MIT not be
  16. used in advertising or publicity pertaining to distribution of the
  17. software without specific, written prior permission.  
  18.  
  19. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  20. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  21. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  22. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  23. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  24. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  25. SOFTWARE.
  26.  
  27. ******************************************************************/
  28.  
  29. /***********************************************************************
  30.  *
  31.  * AsciiText Widget
  32.  *
  33.  ***********************************************************************/
  34.  
  35. /*
  36.  * AsciiText.c - Public header file for AsciiText Widget.
  37.  *
  38.  * This Widget is intended to be used as a simple front end to the 
  39.  * text widget with an ascii source and ascii sink attached to it.
  40.  *
  41.  * Date:    June 29, 1989
  42.  *
  43.  * By:      Chris D. Peterson
  44.  *          MIT X Consortium 
  45.  *          kit@expo.lcs.mit.edu
  46.  */
  47.  
  48. #ifndef _AsciiText_h
  49. #define _AsciiText_h
  50.  
  51. /****************************************************************
  52.  *
  53.  * AsciiText widgets
  54.  *
  55.  ****************************************************************/
  56.  
  57. #include <X11/Xaw/Text.h>        /* AsciiText is a subclass of Text */
  58. #include <X11/Xaw/AsciiSrc.h>
  59.  
  60. /* Resources:
  61.  
  62.  Name             Class        RepType        Default Value
  63.  ----             -----        -------        -------------
  64.  background         Background        Pixel        XtDefaultBackground
  65.  border             BorderColor    Pixel        XtDefaultForeground
  66.  borderWidth         BorderWidth    Dimension    1
  67.  destroyCallback     Callback        Pointer        NULL
  68.  displayPosition     TextPosition    int        0
  69.  editType         EditType        XawTextEditType    XawtextRead
  70.  font             Font        XFontStruct*    Fixed
  71.  foreground         Foreground        Pixel        Black
  72.  height             Height        Dimension    font height
  73.  insertPosition         TextPosition    int        0
  74.  leftMargin         Margin        Dimension    2
  75.  mappedWhenManaged   MappedWhenManaged    Boolean        True
  76.  selectTypes         SelectTypes    Pointer        (internal)
  77.  selection         Selection        Pointer        empty selection
  78.  sensitive         Sensitive        Boolean        True
  79.  string             String        String        NULL
  80.  textOptions         TextOptions    int        0
  81.  width             Width        Dimension    100
  82.  x             Position        Position    0
  83.  y             Position        Position    0
  84.  
  85. */
  86.  
  87. /*
  88.  * Everything else we need is in StringDefs.h or Text.h
  89.  */
  90.  
  91. typedef struct _AsciiTextClassRec    *AsciiTextWidgetClass;
  92. typedef struct _AsciiRec            *AsciiWidget;
  93.  
  94. extern WidgetClass asciiTextWidgetClass;
  95.  
  96. /************************************************************
  97.  *
  98.  * Disk and String Emulation Info.
  99.  * 
  100.  ************************************************************/
  101.  
  102. #ifdef ASCII_STRING
  103. extern WidgetClass asciiStringWidgetClass;
  104. #endif
  105.  
  106. #ifdef ASCII_DISK
  107. extern WidgetClass asciiDiskWidgetClass;
  108. #endif
  109.  
  110. #endif /* _AsciiText_h */
  111.